package com.tceasy.gateway.domain;

import java.io.Serializable;

/**
 * Created by zhanghuan on 2016/4/15.
 */
public class OpenPermission implements Serializable {
    String method;
    String methodName;
    /*限制访问，默认-1代表不限制*/
    long limitD=-1;/*每天限制访问次数*/
    long limitH=-1;/*每小时限制访问次数*/
    long limitM=-1;/*每分钟限制访问次数*/
    long limitS=-1;/*每秒限制访问次数*/

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public long getLimitD() {
        return limitD;
    }

    public void setLimitD(long limitD) {
        this.limitD = limitD;
    }

    public long getLimitH() {
        return limitH;
    }

    public void setLimitH(long limitH) {
        this.limitH = limitH;
    }

    public long getLimitM() {
        return limitM;
    }

    public void setLimitM(long limitM) {
        this.limitM = limitM;
    }

    public long getLimitS() {
        return limitS;
    }

    public void setLimitS(long limitS) {
        this.limitS = limitS;
    }

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "Permission{" +
                "method='" + method + '\'' +
                ", methodName='" + methodName + '\'' +
                ", limitD=" + limitD +
                ", limitH=" + limitH +
                ", limitM=" + limitM +
                ", limitS=" + limitS +
                '}';
    }
}
